//
//  DistrictView.h
//  MemberProject
//
//  Created by mac on 15/4/30.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DistrictView;
@protocol DistrictViewDelegate <NSObject>
@optional
-(void)districtView:(DistrictView *)view indexPath:(NSIndexPath *)indexPath positionDic:(NSDictionary *)dic;
@end
@interface DistrictView : UIView<UICollectionViewDataSource,UICollectionViewDelegate>
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property(strong,nonatomic)NSDictionary *dic;
@property(strong,nonatomic)NSArray *data;
@property(assign,nonatomic)id<DistrictViewDelegate> delegate;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionViewHeight;
@property (weak, nonatomic) IBOutlet UIView *tapView;

@property(strong,nonatomic)NSString *cityLabelText;

@property(strong,nonatomic)NSIndexPath *lastSelectedIndexPath;
-(void)refreshHeightOfDistrictView;
@end
